package org.hs.phd.odi.tracking.inputscenarios;

import java.awt.Rectangle;

import org.hs.phd.common.simpleplayer.FramePlayer;
import org.hs.phd.common.simpleplayer.FrameSource;
import org.hs.phd.common.simpleplayer.SimplePlayerFramework;
import org.hs.phd.common.simpleplayer.filter.CropFilter;
import org.hs.phd.common.simpleplayer.filter.FlipFilter;
import org.hs.phd.common.simpleplayer.framesource.FolderFrameSource;
import org.hs.phd.odi.transformation.ODITransformation;
import org.hs.phd.odi.transformation.ParaCatadioptricTransformation;

public class Scenario20111123Dia6Exp512 {
	
	private FrameSource frameSource;
	private ODITransformation transformation;
	private FramePlayer player;

	public Scenario20111123Dia6Exp512(){
		this(4193);
	}
	
	public Scenario20111123Dia6Exp512(int startFrameNo){
        frameSource = new FolderFrameSource(
                "D:\\Hakan_PhD\\Data\\OwnData\\KAYIT_20111123\\KAYIT_dia6_exp512\\renamed\\Image",
                ".jpg", startFrameNo, 25);

        player = SimplePlayerFramework.createPlayer(frameSource);

        transformation = new ParaCatadioptricTransformation(510, 510, 400, true);
        
        player.addFilter( new CropFilter(new Rectangle(205, 85, 1019, 874)) );
        player.addFilter( new FlipFilter(FlipFilter.FlipType.FLIP_AROUND_Y_AXIS) );
	}
	
	public ODITransformation getTransformation() {
		return transformation;
	}

	public FramePlayer getPlayer() {
		return player;
	}

}
